home *** CD-ROM | disk | FTP | other *** search
- Path: maze.dpo.uab.edu!usenet
- From: Jian Shen <shen@cis.uab.edu>
- Newsgroups: comp.lang.c++
- Subject: Help: Porting a Borland C++4.0 program to GNU g++ progarm running on Unix
- Date: 11 Mar 1996 21:54:42 GMT
- Organization: University of Alabama at Birmingham
- Message-ID: <4i27f2$sdk@maze.dpo.uab.edu>
- NNTP-Posting-Host: tty33.maze.ppp.uab.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- Dear Friends,
- I am trying to porting a small object-oriented database management system written in C++
- by Mr. Al Steve in his book "C++ DATABASE DEVELOPMENT 2/E" to a UNIX workstation using GNU's
- G++(version 2.7.1). But there are several imcompatibilities I need you guys help me out.
-
- 1. Does the GNU g++ compiler support RTTI(run time type identification)? I have some code
- like:
- const Type_info *relatedclass; ----- a type declaration
- return typeid(T) == typeid(ObjAddress); ----- function call made for a comparison
- return reinterpret_cast<const ObjAddr*> (&ky); ----- a explicite type casting
-
- 2. How I can use the string object in G++, there is a header file <cstring.h> in Borland C++
- but I didn't find one in G++, there is CString file in the include directory, I don't
- what that is for. I thing the string object is supported in G++, I just don't know which
- header should I include and which library should I link.
-
- 3. Both c++ compilers support Exception Handling, but when I test some code on G++, it can't
- be compiled correctly. So where is imcompatibility? or maybe just I didn't use the G++
- correctly.
-
- If someone has already done the same job before, it would be wonderful if he can told me
- what he did to make it work. I have this hope because the author claimed that his program has
- been used by thouthands of readers on varity of platforms.
- Anyone who familiar with both above C++ compilers, and know how to solve those problems,
- please E-mail me at:
- shen@cis.uab.edu
-
- Your help is greatly appreciated! Thanks a lot!
-
- Jian Shen
- University of Alabama at Birmingham
- shen@cis.uab.edu
-
-
-